<div class="tms-main-page-function">
    <div class="main-content" style="height:auto">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
                <button class="layui-btn" ng-click="createWarehousePlanClick()">创建备料计划</button>
            </ul>
            <div class="wms-wbm-fun-right">
                <input type="text" placeholder="指令号-->回车查询" ng-model="search.spDispatchNo" ng-keydown="searchListKeyDown($event)" class="search-input" ng-show="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1">
                <input type="text" placeholder="组版单号-->回车查询" ng-model="search.spGroupBoardNo" ng-keydown="searchListKeyDown($event)" class="search-input" ng-show="userInfo.whCode.indexOf(constant.userWarehouseType.JM_) != -1">
                <button class="layui-btn" ng-click="moreClick()" ng-bind="moreText">更多条件</button>
                <i class="iconfont icon-shuaxin layui-anim layui-anim-loop layui-anim-rotate wms-refresh" ng-click="refreshClick()" refresh></i>
            </div>
        </div>
        <div class="otherForm" ng-show="otherForm" >
            <ul>
                <li>
                    <div class="otherFormItem">
                        <div>订单号</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.spOrderNo" />
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>货主</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.shipper">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.wnhCustomerName"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="shipper in (dropDownList.shipper | filter: $select.search)">
                                    <span ng-bind="shipper.wnhCustomerName"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>承运商</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.spCarrier"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>状态</div>
                        <div>
                            <ui-select ng-model="dropDownDefault.shipmentPlanStatus">
                                <ui-select-match>
                                    <span ng-bind="$select.selected.name"></span>
                                </ui-select-match>
                                <ui-select-choices repeat="shipmentPlanStatus in dropDownList.shipmentPlanStatus">
                                    <span ng-bind="shipmentPlanStatus.name"></span>
                                </ui-select-choices>
                                <ui-select-no-choice>
                                    没有加载到数据
                                </ui-select-no-choice>
                            </ui-select>
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem">
                        <div>起运地</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.spOrigin"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>目的地</div>
                        <div>
                            <input type="text" class="layui-input" ng-model="search.spDest"/>
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>创建日期</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.gmtCreateBegin" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                    <div class="otherFormItem">
                        <div>至</div>
                        <div>
                            <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="search.gmtCreateEnd" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                        </div>
                    </div>
                </li>

                <li>
                    <div class="otherFormItem otherFormItemButton">
                        <button class="layui-btn" ng-click="searchClick()">查询</button>
                        <button class="layui-btn" ng-click="resetClick()">重置</button>
                    </div>
                </li>
            </ul>
        </div>
        <div class="layui-form scrollTable">
            <table class="layui-table wms_wbm_main_table minScreen serial shipmentPlanTable" style="width : 2500px;">
                <tbody>
                    <tr ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1">
                        <th>
                            <input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose">
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </th>
                        <th>指令号</th>
                        <th>订单号</th>
                        <th>状态</th>
                        <th>创建时间</th>
                        <th>货主</th>
                        <th>承运商</th>
                        <th>板车车牌号</th>
                        <th>起运地</th>
                        <th>目的地</th>
                    </tr>
                    <tr ng-repeat="shipmentPlan in shipmentPlanList" ng-click="selectItemClick(shipmentPlan,$event)" ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1">

                        <td>
                            <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary" />
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </td>
                        <td ng-bind="shipmentPlan.spDispatchNo"></td>
                        <td ng-bind="shipmentPlan.spOrderNo"></td>
                        <td ng-bind="shipmentPlan.spSendBusinessFlag | shipmentPlanStatusFilter"></td>
                        <td ng-bind="shipmentPlan.gmtCreate"></td>
                        <td ng-bind="shipmentPlan.spCustomerName"></td>
                        <td ng-bind="shipmentPlan.spCarrier"></td>
                        <td ng-bind="shipmentPlan.spSupplierVehiclePlate"></td>
                        <td ng-bind="shipmentPlan.spOrigin"></td>
                        <td ng-bind="shipmentPlan.spDest"></td>
                    </tr>
                    <tr ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.JM_) != -1">
                        <th>
                            <input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose">
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </th>
                        <th>组版单号</th>
                        <th>订单号</th>
                        <th>状态</th>
                        <th>创建时间</th>
                        <th>发运类型</th>
                        <th>发货仓库</th>
                        <th>承运商</th>
                        <th>承运商联系人</th>
                        <th>承运商联系电话</th>
                        <th>承运商联系手机</th>
                        <th>组板数量</th>
                        <th>车型</th>
                        <th>配置</th>
                        <th>颜色</th>
                        <th>物料代码</th>
                        <th>经销商</th>
                        <th>收货人</th>
                        <th>收货人联系电话</th>
                        <th>收货省</th>
                        <th>收货市</th>
                        <th>收货区县</th>
                        <th>收地详细地址</th>
                        <th>资金类型</th>
                        <th>是否保留合格证</th>
                        <th>订单备注</th>
                        <th>分派备注</th>
                    </tr>
                    <tr ng-repeat="shipmentPlan in shipmentPlanList" ng-click="selectItemClick(shipmentPlan,$event)" ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.JM_) != -1">

                        <td>
                            <input type="checkbox" name="ckValue" ng-value="$index" lay-skin="primary" />
                            <div class="layui-unselect layui-form-checkbox" lay-skin="primary">
                                <i class="layui-icon"></i>
                            </div>
                        </td>
                        <td ng-bind="shipmentPlan.spGroupBoardNo"></td>
                        <td ng-bind="shipmentPlan.spOrderNo"></td>
                        <td ng-bind="shipmentPlan.spSendBusinessFlag | shipmentPlanStatusFilter"></td>
                        <td ng-bind="shipmentPlan.gmtCreate"></td>
                        <td ng-bind="shipmentPlan.spDlvType | shipmentPlanTypeFilter"></td>
                        <td ng-bind="shipmentPlan.spDeliverWarehouseName"></td>
                        <td ng-bind="shipmentPlan.spCarrier"></td>
                        <td ng-bind="shipmentPlan.spLogiContact"></td>
                        <td ng-bind="shipmentPlan.spLogiTel"></td>
                        <td ng-bind="shipmentPlan.spLogiPhone"></td>
                        <td ng-bind="shipmentPlan.spGroupBoardQuantity"></td>
                        <td ng-bind="shipmentPlan.spVehicleName"></td>
                        <td ng-bind="shipmentPlan.spConfigure"></td>
                        <td ng-bind="shipmentPlan.spCarColour"></td>
                        <td ng-bind="shipmentPlan.spMaterialCode"></td>
                        <td ng-bind="shipmentPlan.spDealerName"></td>
                        <td ng-bind="shipmentPlan.spReceiveMan"></td>
                        <td ng-bind="shipmentPlan.spReceiveTel"></td>
                        <td ng-bind="shipmentPlan.spProvince"></td>
                        <td ng-bind="shipmentPlan.spCity"></td>
                        <td ng-bind="shipmentPlan.spDistrictCounty"></td>
                        <td ng-bind="shipmentPlan.spDetailedAddress"></td>
                        <td ng-bind="shipmentPlan.spFoundType"></td>
                        <td ng-bind="shipmentPlan.spIsRemain"></td>
                        <td ng-bind="shipmentPlan.spOrderRemark"></td>
                        <td ng-bind="shipmentPlan.spDispRemark"></td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page" style="text-align: center;">
            <div id="page" class="page">
            </div>
        </div>
    </div>

    <div class="main-content" style="height:50%" ng-if="userInfo.whCode.indexOf(constant.userWarehouseType.UNLCN_XN_) != -1">
        <div class="page-function">
            <ul class="wms-wbm-fun-left">
            </ul>
        </div>
        <div class="otherForm" ng-show="otherForm">
        </div>
        <div class="layui-form scrollTable">
            <table class="layui-table wms_wbm_main_table minScreen outboundTable">
                <tbody>
                    <tr>
                        <th>车架号(VIN码)</th>
                        <th>车型</th>
                        <th>车型描述</th>
                        <th>客户运单号</th>
                        <th>车辆状态</th>
                        <!--<th>完成时间</th>-->
                    </tr>
                    <tr ng-repeat="outboundOrderDetail in outboundOrderDetailList">
                        <td ng-bind="outboundOrderDetail.spVin"></td>
                        <td ng-bind="outboundOrderDetail.spVehicleName"></td>
                        <td ng-bind="outboundOrderDetail.spVehicleDesc"></td>
                        <td ng-bind="outboundOrderDetail.spWaybillNo"></td>
                        <td ng-bind="outboundOrderDetail.spSendBusinessFlag | shipmentPlanStatusFilter"></td>
                        <!--<td ng-bind="outboundOrderDetail.gmtCreate"></td>-->
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="admin-table-page" style="text-align: center;">
            <div id="pages" class="page">
            </div>
        </div>
    </div>
</div>

